package cn.edu.xust.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Comparator;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @author ufo
 * @email 2575829997@qq.com
 * @date 2024-03-27 18:09:23
 */
@Data
@TableName("device")
public class DeviceEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 设备唯一标识
     */
    private String name;
    /**
     * 别名
     */
    private String nickname;
    /**
     * 1电表 2水表
     */
    private String type;
    /**
     *
     */
    private Integer gatewayid;
    /**
     *
     */
    private String note;
    /**
     *
     */

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date ctime;
    private String secr;
    private String opcode;
    private Integer hotelid;
    private String roomname;
    private String model;
    private String classify;


}

